package com.ruoyi.project.manhua.webLook.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.manhua.webLook.service.MhPersonageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


/**
 * 漫画章节 Controller
 *
 * @author yuan
 * @date 2021-01-13
 */
@Controller
@RequestMapping("/manhua/look/personage")
public class MhPersonageController extends BaseController
{
    private String prefix = "manhua/look";



    @Autowired
    private MhPersonageService mhPersonageService;

    /**
     * 首页请求
     * @return
     */
    @GetMapping("")
    public String personage()
    {
        return prefix+"/personage";
    }


    @PostMapping("/collectData")
    @ResponseBody
    public AjaxResult personageData(){
        return mhPersonageService.personageDataService();
    }


}
